<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/index.php/index/index/index/sex/123" method="post">
    <p>
        用户名:
        <input type="text" name="username"> <br>
    </p>
    爱好:
    <p>
    <label><input type="checkbox" name="hobby[]" value="1">足球</label>
    <label><input type="checkbox" name="hobby[]" value="2">篮球</label>
    <label><input type="checkbox" name="hobby[]" value="3">唱</label>
    <label><input type="checkbox" name="hobby[]" value="4">跳</label>
    <label><input type="checkbox" name="hobby[]" value="5">rap</label>
    </p>
    <button>提交</button>
</form>
</body>
</html>